<?php
defined('APP_PATH') || define('APP_PATH', realpath(dirname(__FILE__).'/..'));

return array(
	'name' => 'application name',

	'basePath'=>APP_PATH,

	'import'=>array(
		'application.models.*',
		'application.components.*',
	),

	'behaviors' => array(
		'application' => 'application.components.behaviors.ApplicationBehavior',
	),//behaviors

	'modules'=>array(
	),

	'preload'=>array('log'),

	'components'=>array(
		'request' => array(
			'class' => 'JHttpRequest',
			),//request

		'db'=>array(
			'class' => 'JDbConnection',
			'connectionString' => 'mysql:host=localhost;dbname=test',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',

			'multi' => array(),
		),//db

		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
			),
		),//log

	),//components

);